/**
 * @description: 项目管理
 * @version: 0.0.1
 * @author: ljr
 * @Date: 2023-09-12 11:33:58
 */
import {
  Table,
  Model,
  Column,
  CreatedAt,
  UpdatedAt,
  DataType,
} from 'sequelize-typescript';

@Table({ tableName: 'orders_cost' })
export class OrdersCostRecord extends Model {
  @Column({
    primaryKey: true,       //主键
    autoIncrement: true,    //自增
    comment: "自增id"       //注释:只在代码中有效
  })
  id: number;
  
  @Column(DataType.TEXT)
  cost_name: string; //名称

  @Column(DataType.INTEGER)
  cost_amount: number; //金额

  @Column(DataType.TEXT)
  cost_remark: string; //备注

  @Column(DataType.INTEGER)
  order_id: number; //订单id

  @CreatedAt
  created_at: Date; 

  @UpdatedAt
  updated_at: Date;
}